<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>无线城市</title>
		<meta http-equiv="keywords" content="enter,your,keywords,here" />
		<meta http-equiv="description" content="A short description of this page." />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<script type="text/javascript">
		var obj_str = 'window';
		var current_str = 'window';
		function allPrpos(obj) { 
			var tmp_obj_str = '';
			try{
				var props = '';//alert(obj);
				// 开始遍历
				for(var p in obj){
					try{
						if(p != 'window') tmp_obj_str = obj_str+'.'+p;
						if(typeof(obj[p]) == 'object') props = props+'<a href="javascript:showObject(\''+tmp_obj_str+'\');void(0);">'+p+"</a>:"+typeof(obj[p])+"<br />";
						else  props = props+p+":"+typeof(obj[p])+"<br />";
					}catch(err){
						props = props+"<font color='red'>"+p+":error</font><br />";
					}
				} 
				return props;

			}catch(e){props = p+"="+e.toString()+props;return props;}
		}

		function showObject(obj){
			current_str = obj;
			document.body.innerHTML='<a href="javascript:showObject(\''+getPreObject(current_str)+'\');void(0);"><h3>Return</h3></a><br /><br />'+eval("allPrpos("+obj+")");
		}

		function getPreObject(obj){
			var pre_obj = '';
			var obj_ar = obj_str.split('.');
			if(obj_ar.length==1) return obj_str;

			for(var i = 0; i<obj_ar.length-1; i++){
				if(pre_obj) pre_obj = pre_obj + '.' + obj_ar[i];
				else pre_obj = obj_ar[i];
			}

			return pre_obj;
		}

		function getInput(){
			var input_obj=prompt( "pls enter a value: "); 
			document.body.innerHTML='<a href="javascript:showObject(\''+getPreObject(obj_str)+'\');void(0);"><h3>Return</h3></a><br /><br />'+eval("allPrpos("+input_obj+")");
		}
		</script>
	</head>
	<body onload="showObject(obj_str);">
	</body>
</html>
